/**
 * @Project: InteractAPI
 * @Title: InteractAction_ender.java
 * @Package com.j99view.interact.action
 * @Description: TODO
 * Copyright: Copyright (c) 2010 
 * Company:ENDER.crop
 * 
 * @author ender
 * @date 2013-8-29 下午10:56:48
 * @version V1.0.0
 */
package com.j99view.interact.action;

import java.io.IOException;
import java.net.Socket;

import com.j99view.interact.InteractStruct;
import com.j99view.interact.action.area.Area_PlayArea_Action_ender;

/**
 * @ClassName: InteractAction_ender
 * @Description: TODO
 * @author ender
 * @date 2013-8-29 下午10:56:48
 *
 */
public abstract class InteractAction_ender {
	protected InteractStruct struct;
	
	protected int id;

	/**
	  * 创建一个新的实例 InteractAction_ender. 
	  * <p>Title: </p>
	  * <p>Description: </p>
	  */
	public InteractAction_ender() {
		struct = new InteractStruct(InteractStruct.ACTION);
	}
	
	public int getId(){
		return id;
	}
	
	public abstract void write(Socket socket) throws IOException;
	
	public static void mian(String arg[]){
		InteractAction_ender ia = new InteractAction_ender() {
			
			@Override
			public void write(Socket socket) throws IOException {
				// TODO Auto-generated method stub
				
			}
		};
		
		ia = new Area_PlayArea_Action_ender(0);
		
	}
}
